package com.jiu345.users.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiu345.api.pojo.BaseEntity;
import lombok.*;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用记地址
 * @author Mr Lei QQ：235921049
 * @date 2024-07-29 10:52:48
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("member_addr")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Address extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /*id*/
    @TableId(value = "id")
    private Long id;
    /*用户id*/
    private Long userId;
    /*收货人姓名*/
    private String name;
    /*手机号码*/
    private String phone;
    /*地址属性：家，公司*/
    private String tagName;
    /*省*/
    private Integer provinceCode;
    /*市*/
    private Integer cityCode;
    /*区*/
    private Integer districtCode;
    /*街道地址*/
    private String fullLocation;
    /*详细地址*/
    private String fullAddress;
    /*是否默认地址*/
    private Integer isDefault;
    /*创建时间*/
    private Date createTime;
    /*更新时间*/
    private Date updateTime;
    /*其他*/
    @TableField(exist = false)
    private String allAddress;
    @TableField(exist = false)
    private String provinceName;
    @TableField(exist = false)
    private String cityName;
    @TableField(exist = false)
    private String districtName;
}
